package com.data.common.util.jsonschema;

/**
 *  json 基础结构
 */
public class BaseColumn {

    /**
     *
     */
    private String title;

    private String field;


    public boolean mo35a(Object obj) {
        return obj instanceof BaseColumn;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof BaseColumn)) {
            return false;
        }
        BaseColumn aVar = (BaseColumn) o;
        if (!aVar.mo35a(this)) {
            return false;
        }
        String title = getTitle();
        String title2 = aVar.getTitle();
        if (title != null ? !title.equals(title2) : title2 != null) {
            return false;
        }
        String field = getField();
        String field2 = aVar.getField();
        if (field == null) {
            if (field2 == null) {
                return true;
            }
        } else if (field.equals(field2)) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        int i = 43;
        String title = getTitle();
        int hashCode = title == null ? 43 : title.hashCode();
        String field = getField();
        int i2 = (hashCode + 59) * 59;
        if (field != null) {
            i = field.hashCode();
        }
        return i2 + i;
    }

    public void setField(String field) {
        this.field = field;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String toString() {
        return "BaseColumn(title=" + getTitle() + ", field=" + getField() + ")";
    }

    public String getTitle() {
        return this.title;
    }

    public String getField() {
        return this.field;
    }

    public BaseColumn() {
    }

    public BaseColumn(String str, String str2) {
        this.title = str;
        this.field = str2;
    }
}
